#!/usr/bin/env python
import cgi
form = cgi.FieldStorage()

colors = form.getlist('color')

print "Content-type: text/html"
print
print '<html><body>'
print 'The colors list:', colors
for color in colors:
    print '<p>', cgi.escape(color), '</p>'

print '</body></html>'
